class MyBaseException(Exception):
    """ 自定义异常基类 """

    def __init__(self, status_code: int, code: int, msg: str, data: None):
        self.status_code = status_code
        self.code = code
        self.msg = msg
        self.data = data


class TokenException(MyBaseException):
    """ 自定义token异常类 """
    pass


# class TokenException(Exception):
#     """ 自定义token异常类 """

#     def __init__(self, code: int, msg: str, data: None):
#         self.code = code
#         self.msg = msg
#         self.data = data
